import express from 'express';
const router = express.Router();

import measure from '../controller/measure';

export = (app: any) => {
    router.post('/addData', measure.addData); // 新增测量数据
    router.get('/findData', measure.findData); // 查询测量数据
    router.delete('/deleteData', measure.deleteData); // 删除
    router.put('/editData', measure.editData); // 编辑测量数据
    app.use('/node/api/measure', router);
};